<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>example</title>
    <script type="text/javascript" 
        src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript" 
        src="http://jquery-json.googlecode.com/files/jquery.json.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            getTags();
            postJson("tags.ashx", {name: "qwerty", description: "well well..."}, function() {});
        });
        
        function getTags() {
            $.getJSON("tags.ashx");
        }
        
        function postJson(url, data, callback) {
            $.ajax({
                type: "POST",
			    url: url,
			    data: $.toJSON(data),
			    success: callback,
			    dataType: "json",
			    contentType: "application/json"});
        }
    </script>
</head>
<body>
</body>
</html>
